package com.jdrx.sw.sewage.beans.mq;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 物联网命令状态
 * Created by zsq on 2020-01-10.
 */
@Data
public class IOTCommandStatus implements Serializable {
    private static final long serialVersionUID = 1161897056122130712L;
    private String id;                          // 物联网平台设备ID
    private String sn;                          // 设备SN号
    private String tid;                         // 事务ID
    private Integer type;                       // 命令调用平台(0表示物联网，其它都是三方平台)
    private Integer status;                     // 命令状态
    private String gateway;                     //网关编号
    private String tenantId;                     //租户id
    private String time;                        // 日期时间(yyyy-MM-dd HH:mm:ss)
    private String describe;                    // 状态描述
    private List<Map<String, Object>> message;                    // 消息

    public IOTCommandStatus() {
    }

    public IOTCommandStatus(String id) {
        this.id = id;
    }

    public IOTCommandStatus(String id, String sn, String gateway, String tid, Integer type, Integer status, String time, String describe, List<Map<String, Object>> message, String tenantId) {
        this.id = id;
        this.sn = sn;
        this.tid = tid;
        this.type = type;
        this.status = status;
        this.time = time;
        this.gateway = gateway;
        this.describe = describe;
        this.message = message;
        this.tenantId = tenantId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public List<Map<String, Object>> getMessage() {
        return message;
    }

    public void setMessage(List<Map<String, Object>> message) {
        this.message = message;
    }

    public String getGateway() {
        return gateway;
    }

    public void setGateway(String gateway) {
        this.gateway = gateway;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    @Override
    public String toString() {
        return "IOTCommandStatus{" + "id='" + id + '\'' + ", sn='" + sn + '\'' + ", tid='" + tid + '\'' + ", type=" + type + ", status=" + status + ", time='" + time + '\'' + ", describe='" + describe + '\'' + '}';
    }
}
